package cn.laikyy.lfp.service;

import cn.laikyy.lfp.dao.IUserDao;
import cn.laikyy.lfp.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserService {

    @Resource
    private IUserDao userDao;

    /**
     * @Description: 根据条件查询用户
     * @param user
     * @return: java.util.List<cn.laikyy.lfp.entity.User>
     * @author laikyy
     * @date 2018/1/23 23:31
     */
    public List<User> findUserByCodition(User user){
        return  userDao.findUserByCondition(user);
    }
}
